/*
 * @Descripttion: 
 * @version: 
 * @Author: 刘冰见
 * @Date: 2024-10-10 00:47:58
 * @LastEditors: 刘冰见
 * @LastEditTime: 2024-10-24 17:40:28
 */
class Orderitem {
  final String area;
  final String fFieldName;
  final double fNum;
  final int num;
  final String oEquipmentCode;
  final int oGlassesNum;
  int oIsRefund;
  final double oMoney;
  final String oOrderCode;
  final String oPayCode;
  final double oRealMoney;
  final String oStartTime;
  int oStatus;
  final String userTelphone;

  Orderitem(
      {required this.area,
      required this.fFieldName,
      required this.fNum,
      required this.num,
      required this.oEquipmentCode,
      required this.oGlassesNum,
      required this.oIsRefund,
      required this.oMoney,
      required this.oOrderCode,
      required this.oPayCode,
      required this.oRealMoney,
      required this.oStartTime,
      required this.oStatus,
      required this.userTelphone});

  factory Orderitem.fromJson(Map<String, dynamic> json) {
    return Orderitem(
        area: json['area'] ?? '',
        fFieldName: json['f_field_name'] ?? '',
        fNum: json['f_num'] ?? 0,
        num: json['num'] ?? 0,
        oEquipmentCode: json['o_equipment_code'] ?? '',
        oGlassesNum: json['o_glasses_num'] ?? 0,
        oIsRefund: json['o_is_refund'] ?? 0,
        oMoney: json['o_money'] ?? 0,
        oOrderCode: json['o_order_code'] ?? '',
        oPayCode: json['o_pay_code'] ?? '',
        oRealMoney: json['o_real_money'] ?? 0,
        oStartTime: json['o_start_time'] ?? '',
        oStatus: json['o_status'] ?? 0,
        userTelphone: json['user_telphone'] ?? '');
  }
}
